package com.cloudy.core;

import com.cloudy.core.face.Hello;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

//客户端调用
public class Client {

    @Test
    public void testSpringClient() throws Exception {
        final ApplicationContext context = new ClassPathXmlApplicationContext("spring-context-thrift-client.xml");
        Hello.Iface helloFace = (Hello.Iface) context.getBean("client");
        System.out.println(helloFace.helloString("hello--echo"));
    }
}
